Skip to content

MPT-21995 Adopt manual release pipeline with optional E2E#338

Merged
d3rky merged 2 commits into
mainfrom
feature/MPT-21995/adopt-release-pipeline
Jun 10, 2026
Merged

MPT-21995 Adopt manual release pipeline with optional E2E#338
d3rky merged 2 commits into
mainfrom
feature/MPT-21995/adopt-release-pipeline

Conversation

@d3rky

@d3rky d3rky commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

🤖 AI-generated PR — Please review carefully.

What

Replaces the release: published publish workflow with the new manually-triggered library release pipeline, and makes E2E runnable on demand. Keeps the release.yml filename (PyPI trusted publisher is bound to it).

release.yml

  • workflow_dispatch with a version input (X.Y.Z, no v) and a run_e2e checkbox.
  • Validates: semver; branch main/release/*; no existing published release; version strictly greater than highest reachable tag (monotonic per branch).
  • When run_e2e is checked: builds test containers, runs the E2E suite against the MPT API and reports to ReportPortal (non-blocking, continue-on-error, same as before), then stops containers — before building/publishing.
  • uv build + uv publish --check-url (OIDC trusted publishing; idempotent).
  • Creates an annotated tag and a GitHub release (title vX.Y.Z, generated notes; pre-release on main / latest on release/*).
  • Runs Dependency-Track (project mpt-api-python-client).

cron-main-e2e.yml

  • Adds a workflow_dispatch trigger so the E2E suite can also be run manually on demand, independent of the daily schedule.

Notes

  • E2E on release stays non-blocking (continue-on-error) to match the previous behaviour; it is run for its ReportPortal launch, not as a release gate.

Testing

  • pre-commit (check-yaml + file hygiene) passes.
  • Not yet exercised end-to-end on GitHub Actions.

Subtask: MPT-21995 (parent MPT-21981).

Replace the publish-on-release workflow with the new manually-triggered library release pipeline (validate version, uv build + uv publish, annotated tag, GitHub release with pre-release on main / latest on release/*, Dependency-Track). Idempotent re-runs; release.yml filename kept stable for the PyPI trusted publisher binding.

Add a run_e2e checkbox input that runs the E2E suite (non-blocking, ReportPortal) before publishing, and add a workflow_dispatch trigger to cron-main-e2e.yml so E2E can be run manually on demand.

MPT-21995

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@d3rky d3rky requested a review from a team as a code owner June 10, 2026 12:13
@d3rky d3rky requested review from jentyk and ruben-sebrango June 10, 2026 12:13
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@d3rky, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 10 minutes and 15 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 1e1cb5ca-59b5-4d02-bc5f-5399249dc0ba

📥 Commits

Reviewing files that changed from the base of the PR and between c8a78aa and 1322ec8.

📒 Files selected for processing (2)
  • .github/workflows/cron-main-e2e.yml
  • .github/workflows/release.yml

Comment @coderabbitai help to get the list of available commands and usage tips.

Address CodeRabbit: when the release tag already exists, verify it points to the dispatched commit (GITHUB_SHA) and fail otherwise, instead of silently skipping. Prevents creating a release from an unintended commit if the tag was pre-created or drifted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@d3rky d3rky merged commit b297a05 into main Jun 10, 2026
4 checks passed
@d3rky d3rky deleted the feature/MPT-21995/adopt-release-pipeline branch June 10, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant